package com.yesun.dcm.remote;

import com.yesun.dcm.commons.extension.Adaptive;
import com.yesun.dcm.commons.extension.SPI;
import com.yesun.dcm.commons.rpc.URL;

import java.util.Map;

/**
 * @author chunmingdeng, 2017/10/3 Create.
 * @version 1.0
 * @copyright (c) YESUN. All Rights Reserved.
 * @description:
 */
@SPI("netty")
public interface Transporter {

    @Adaptive("server")
    Server bind(URL url, Map<String, Object> map);
}
